Avoid deprecation warnings
authorMatthias Clasen <mclasen@redhat.com>
Tue, 24 Jun 2014 12:21:29 +0000 (08:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 24 Jun 2014 12:23:21 +0000 (08:23 -0400)
We know regions are deprecated, no need to warn about it here.

gtk/gtkcssmatcher.c
tests/styleexamples.c

index b0bdfd1480809c74737f036207c1aead580097e3..04d4571ce18a21b0f265c3e839e49f22133a0178 100644 (file)
@@ -106,7 +106,8 @@ gtk_css_matcher_widget_path_has_regions (const GtkCssMatcher *matcher)
   const GtkWidgetPath *siblings;
   GSList *regions;
   gboolean result;
-  
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   siblings = gtk_widget_path_iter_get_siblings (matcher->path.path, matcher->path.index);
   if (siblings && matcher->path.sibling_index != gtk_widget_path_iter_get_sibling_index (matcher->path.path, matcher->path.index))
     regions = gtk_widget_path_iter_list_regions (siblings, matcher->path.sibling_index);
@@ -116,6 +117,7 @@ gtk_css_matcher_widget_path_has_regions (const GtkCssMatcher *matcher)
   g_slist_free (regions);
 
   return result;
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static gboolean
@@ -126,6 +128,7 @@ gtk_css_matcher_widget_path_has_region (const GtkCssMatcher *matcher,
   const GtkWidgetPath *siblings;
   GtkRegionFlags region_flags;
   
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   siblings = gtk_widget_path_iter_get_siblings (matcher->path.path, matcher->path.index);
   if (siblings && matcher->path.sibling_index != gtk_widget_path_iter_get_sibling_index (matcher->path.path, matcher->path.index))
     {
@@ -142,6 +145,7 @@ gtk_css_matcher_widget_path_has_region (const GtkCssMatcher *matcher,
     return FALSE;
 
   return TRUE;
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static gboolean
index b3169f4e9c5d473e8ffc8dea3fed064e02d8c494..d55ea2d7a72fed7548bcff144a3668e680fa415b 100644 (file)
@@ -217,7 +217,9 @@ draw_cb_extension (GtkWidget *widget, cairo_t *cr)
   gtk_style_context_save (context);
 
   gtk_style_context_add_class (context, "notebook");
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   gtk_style_context_set_state (context, 0);
   gtk_render_extension (context, cr, 26, 12, 24, 12, GTK_POS_BOTTOM);